
window.onload=function (){
    axios.get("user/getLoginUser").then(resp=>{
       var info= resp.data
        if (info === "noland"){
            location.href="/index.html?errorInfo=noland";
        }
        if (info.grade==="班主任"){
            $("li2").style.visibility="hidden";
            $("li3").style.visibility="hidden";
        }else if (info.grade==="房间管理员"){
            $("li1").style.visibility="hidden";
            $("li3").style.visibility="hidden";
        }else if (info.grade==="系统管理员"){
            $("li2").style.visibility="hidden";
            $("li1").style.visibility="hidden";
        }else if (info.grade==="超级管理员"){
        }

    })
}